package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckGroup;
import redis.clients.jedis.JedisPoolConfig;

import java.util.List;
import java.util.Map;

/**
 * @Author: bowen
 * @Date: 2019/7/13 15:49
 * @Description:
 */
public interface CheckGroupDao {
	void add(CheckGroup checkGroup);
	void addRelationBetweenCheckGroupAndCheckItem(Map map);
	Page<CheckGroup> findPage(String queryString);
	CheckGroup findById(Integer id);
	Integer[] findRelationsById(Integer id);
	void edit(CheckGroup checkGroup);

	void deleteRelations(Integer id);
	List<CheckGroup> findAll();

	List<CheckGroup> findCheckGroupsBySetmealId(Integer id);
	void addRelationBetweenCheckGroupAndCheckItem2(Integer id, Integer item);

	void addRelationBetweenCheckGroupAndCheckItem3(Integer id, Integer[] checkitemIds);

}
